<html>
   <head>
      <link rel="stylesheet" type="text/css" href="style.css" />
   </head>
   <body onload="">
<h2 class="comptitle">Module Interface <i>IBaseNetwLayer</i></h2>
<b>Package:</b> org.mixim.base.modules<br/><b>File: <a href="base-modules-IBaseNetwLayer.ned.html">base/modules/IBaseNetwLayer.ned</a></b><br/>
<p>Interface for network layer modules</p>
<img src="org.mixim.base.modules.IBaseNetwLayer-type.png" ismap="yes" usemap="#type-diagram"/><map name="type-diagram">
<area shape="rect" href="org.mixim.base.modules.IBaseNetwLayer.html" title="IBaseNetwLayer" alt="IBaseNetwLayer" coords="0,0,275,40">
</map>
<h3 class="subtitle">Usage diagram:</h3>
<p>The following diagram shows usage relationships between types.
Unresolved types are missing from the diagram. Click <a href="full-ned-usage-diagram.html">here</a> to see the full picture.</p>
<img src="org.mixim.base.modules.IBaseNetwLayer-usage.png" ismap="yes" usemap="#usage-diagram"/><map name="usage-diagram"><area shape="rect" id="node1" href="org.mixim.base.modules.IBaseNetwLayer.html" title="Module Interface IBaseNetwLayer" alt="" coords="311,83,428,111">
<area shape="rect" id="node2" href="org.mixim.examples.baseNetwork.BaseNode.html" title="Compound Module BaseNode" alt="" coords="5,6,88,34">
<area shape="rect" id="node4" href="org.mixim.modules.node.Host80211.html" title="Compound Module Host80211" alt="" coords="112,6,197,34">
<area shape="rect" id="node6" href="org.mixim.modules.node.Host802154_2400MHz.html" title="Compound Module Host802154_2400MHz" alt="" coords="221,6,376,34">
<area shape="rect" id="node8" href="org.mixim.modules.node.HostBasic.html" title="Compound Module HostBasic" alt="" coords="400,6,483,34">
<area shape="rect" id="node10" href="org.mixim.modules.node.HostBMAC.html" title="Compound Module HostBMAC" alt="" coords="507,6,595,34">
<area shape="rect" id="node12" href="org.mixim.modules.node.HostLMAC.html" title="Compound Module HostLMAC" alt="" coords="619,6,704,34">
</map>
<h3 class="subtitle">Inheritance diagram:</h3>
<p>The following diagram shows inheritance relationships for this type.
Unresolved types are missing from the diagram. Click <a href="full-ned-inheritance-diagram.html">here</a> to see the full picture.</p>
<img src="org.mixim.base.modules.IBaseNetwLayer-inheritance.png" ismap="yes" usemap="#inheritance-diagram"/><map name="inheritance-diagram"><area shape="rect" id="node1" href="org.mixim.base.modules.IBaseNetwLayer.html" title="Module Interface IBaseNetwLayer" alt="" coords="5,6,123,34">
<area shape="rect" id="node2" href="org.mixim.base.modules.BaseNetwLayer.html" title="Simple Module BaseNetwLayer" alt="" coords="7,83,121,111">
</map>
<h3 class="subtitle">Used in compound modules:</h3>
<p>If a module type shows up more than once, that means it has been defined in more than one NED file.</p>
<table>
<tr>
   <td>
      <a href="org.mixim.examples.baseNetwork.BaseNode.html">BaseNode</a>
      <i> (compound&nbsp;module)</i>
   </td>
   <td>
<i>(no description)</i>
   </td>
</tr>
<tr>
   <td>
      <a href="org.mixim.modules.node.Host80211.html">Host80211</a>
      <i> (compound&nbsp;module)</i>
   </td>
   <td>

<p>Example host module using an 802.11 Network interface card.</p>
   </td>
</tr>
<tr>
   <td>
      <a href="org.mixim.modules.node.Host802154_2400MHz.html">Host802154_2400MHz</a>
      <i> (compound&nbsp;module)</i>
   </td>
   <td>

<p>This NED module defines a host using an IEEE 802.15.4 transceiver at 2.4GHz
for wireless communications, that can be used to simulate wireless sensor
networks. </p>
   </td>
</tr>
<tr>
   <td>
      <a href="org.mixim.modules.node.HostBasic.html">HostBasic</a>
      <i> (compound&nbsp;module)</i>
   </td>
   <td>

<p>Example host module for a basic MiXiM host with configurable NIC, network 
layer, application layer and mobility module. </p>
   </td>
</tr>
<tr>
   <td>
      <a href="org.mixim.modules.node.HostBMAC.html">HostBMAC</a>
      <i> (compound&nbsp;module)</i>
   </td>
   <td>

<p>Example host module using a <a href="org.mixim.examples.bmac.BMAC.html">BMAC</a> Network interface card.</p>
   </td>
</tr>
<tr>
   <td>
      <a href="org.mixim.modules.node.HostLMAC.html">HostLMAC</a>
      <i> (compound&nbsp;module)</i>
   </td>
   <td>

<p>Example host module using a <a href="org.mixim.examples.lmac.LMAC.html">LMAC</a> Network interface card.</p>
   </td>
</tr>
</table>
<h3 class="subtitle">Parameters:</h3>
<table class="paramtable">
   <tr>
      <th>Name</th>
      <th>Type</th>
      <th>Default value</th>
      <th>Description</th>
   </tr>
<tr class="local">
   <td width="150">stats</td>
   <td width="100">
      <i>bool</i>
   </td>
   <td width="120"></td>
   <td>
<p>stats switch</p>
   </td>
</tr>
<tr class="local">
   <td width="150">headerLength</td>
   <td width="100">
      <i>double</i>
   </td>
   <td width="120"></td>
   <td>
<p>length of the network packet header (in bits)</p>
   </td>
</tr>
</table>
<h3 class="subtitle">Source code:</h3>
<pre class="src"><span style="color: #808080; font-style: italic; ">// Interface for network layer modules
</span><span style="color: #800000; font-weight: bold; ">moduleinterface</span><span style="color: #000000; "> </span><span style="color: #000000; ">IBaseNetwLayer</span><span style="color: #000000; ">
{
    </span><span style="color: #800000; font-weight: bold; ">parameters</span><span style="color: #000000; ">:
        </span><span style="color: #000080; font-weight: bold; ">bool</span><span style="color: #000000; "> </span><span style="color: #000000; ">stats</span><span style="color: #000000; ">; </span><span style="color: #808080; font-style: italic; ">// stats switch
</span><span style="color: #000000; ">        </span><span style="color: #000080; font-weight: bold; ">double</span><span style="color: #000000; "> </span><span style="color: #000000; ">headerLength</span><span style="color: #000000; "> </span><span style="color: #000000; font-weight: bold; ">@unit</span><span style="color: #000000; ">(</span><span style="color: #008000; ">&quot;bit&quot;</span><span style="color: #000000; ">); </span><span style="color: #808080; font-style: italic; ">// length of the network packet header (in bits)
</span><span style="color: #000000; ">    </span><span style="color: #800000; font-weight: bold; ">gates</span><span style="color: #000000; ">:
        </span><span style="color: #000080; font-weight: bold; ">input</span><span style="color: #000000; "> </span><span style="color: #000000; ">upperGateIn</span><span style="color: #000000; ">; </span><span style="color: #808080; font-style: italic; ">// from application layer
</span><span style="color: #000000; ">        </span><span style="color: #000080; font-weight: bold; ">output</span><span style="color: #000000; "> </span><span style="color: #000000; ">upperGateOut</span><span style="color: #000000; ">; </span><span style="color: #808080; font-style: italic; ">// to application layer
</span><span style="color: #000000; ">        </span><span style="color: #000080; font-weight: bold; ">input</span><span style="color: #000000; "> </span><span style="color: #000000; ">upperControlIn</span><span style="color: #000000; ">; </span><span style="color: #808080; font-style: italic; ">// control from application layer
</span><span style="color: #000000; ">        </span><span style="color: #000080; font-weight: bold; ">output</span><span style="color: #000000; "> </span><span style="color: #000000; ">upperControlOut</span><span style="color: #000000; ">; </span><span style="color: #808080; font-style: italic; ">// control to application layer
</span><span style="color: #000000; ">        </span><span style="color: #000080; font-weight: bold; ">input</span><span style="color: #000000; "> </span><span style="color: #000000; ">lowerGateIn</span><span style="color: #000000; ">; </span><span style="color: #808080; font-style: italic; ">// from NIC
</span><span style="color: #000000; ">        </span><span style="color: #000080; font-weight: bold; ">output</span><span style="color: #000000; "> </span><span style="color: #000000; ">lowerGateOut</span><span style="color: #000000; ">; </span><span style="color: #808080; font-style: italic; ">// to NIC
</span><span style="color: #000000; ">        </span><span style="color: #000080; font-weight: bold; ">input</span><span style="color: #000000; "> </span><span style="color: #000000; ">lowerControlIn</span><span style="color: #000000; ">; </span><span style="color: #808080; font-style: italic; ">// control from NIC
</span><span style="color: #000000; ">        </span><span style="color: #000080; font-weight: bold; ">output</span><span style="color: #000000; "> </span><span style="color: #000000; ">lowerControlOut</span><span style="color: #000000; ">; </span><span style="color: #808080; font-style: italic; ">// control to NIC
</span><span style="color: #000000; ">}

</span></pre>
   <hr><p class="footer"><a href="http://creativecommons.org/licenses/by-sa/3.0" target="_top"><img src="by-sa.png"></a> This documentation is released under the <a href="http://creativecommons.org/licenses/by-sa/3.0" target="_top">Creative Commons license</a></p>
   </body>
</html>
